package com.cat.model.common.enumerator;

public enum TargetType {
	Model("model", "模特"),
	;
	
	private String value;
	private String valueCn;
	
	private TargetType(String value, String valueCn) {
		this.value = value;
		this.valueCn = valueCn;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getValueCn() {
		return valueCn;
	}

	public void setValueCn(String valueCn) {
		this.valueCn = valueCn;
	}
	
	public static String getName(String value) {
		if (value == null) {
			return "";
		}
		for (TargetType enumObj : TargetType.values()) {
			if (value.equals(enumObj.getValue())) {
				return enumObj.getValueCn();
			}
		}
		return "";
	}
}
